<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\DokumenRepository")
 * @Table(name="dokumen")
 */
class Dokumen {
 
/**
 * @Id
 * @Column(name="id", type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;

/**
 * @Column(name="title", type="string", length=45)
 */
	protected $title;

/**
 * @Column(name="path", type="string", length=45)
 */
	protected $path;

/**
 * @Column(name="isHardDok", type="char", length=1)
 */
	protected $isHardDok;

/**
 * 
 * @ManyToOne(targetEntity="JenisDokumen")
 * @JoinColumn(name="jenis_dok", referencedColumnName="id")
 */
	protected $jenisDok;

/**
 * @Column(name="timestamp", type="datetime", nullable=true)
 */
	protected $timestamp; 

/**
 * @Column(name="tgl_dok", type="datetime", nullable=false)
 */
	protected $tglDok;

/**
 * @Column(name="masa_retensi", type="integer", length=1)
 */
	protected $masaRetensi;

/**
 * @Column(name="status", type="char", length=1)
 */
	protected $status;

/**
 * @Column(name="tgl_expired", type="datetime")
 */
	protected $tglExpired;

/**
 * @Column(name="isBackup", type="char", length=1)
 */
	protected $isBackup;

/**
 * @Column(name="kode_cepat", type="string", length=6, unique=true)
 */
	protected $kodeCepat;

/**
 * 
 * @ManyToOne(targetEntity="SifatDokumen")
 * @JoinColumn(name="Sifat_Dokumen_id", referencedColumnName="id")
 */
	protected $sifatDokumen;

/**
 * 
 * @ManyToOne(targetEntity="GrupDokumen")
 * @JoinColumn(name="Grup_Dokumen_id", referencedColumnName="id")
 */
	protected $grupDokumen;

/**
 * 
 * @ManyToOne(targetEntity="KategoriDokumen")
 * @JoinColumn(name="Kategori_Dokumen_id", referencedColumnName="id")
 */
	protected $kategoriDokumen;

/**
 * 
 * @ManyToOne(targetEntity="Divisi")
 * @JoinColumn(name="Divisi_id", referencedColumnName="id")
 */
	protected $divisi;


	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setTitle($title)
	{
	    $this->title = $title;
	}
 
	public function getTitle()
	{
	    return $this->title;
	}

	public function setPath($path)
	{
	    $this->path = $path;
	}
 
	public function getPath()
	{
	    return $this->path;
	}

	public function setIsHardDok($isHardDok)
	{
	    $this->isHardDok = $isHardDok;
	}
 
	public function getIsHardDok()
	{
	    return $this->isHardDok;
	}
	
	public function setJenisDok($jenisDok)
	{
	    $this->jenisDok = $jenisDok;
	}
 
	public function getJenisDok()
	{
	    return $this->jenisDok;
	}
	
	public function setTimestamp($timestamp)
    {
        // will NOT be saved in the database
        $this->timestamp = new \DateTime("now");
    }
    
	public function getTimestamp()
    {
        return $timestamp;
    }
		
	public function setTglDok($tglDok)
	{
	    $this->tglDok = $tglDok;
	}
 
	public function getTglDok()
	{
	    return $this->tglDok;
	}
	
	public function setMasaRetensi($masaRetensi)
	{
	    $this->masaRetensi = $masaRetensi;
	}
 
	public function getMasaRetensi()
	{
	    return $this->masaRetensi;
	}
	
	public function setStatus($status)
	{
	    $this->status = $status;
	}
 
	public function getStatus()
	{
	    return $this->status;
	}
	
	public function setTglExpired($tglExpired)
	{
	    $this->tglExpired = $tglExpired;
	}
 
	public function getTglExpired()
	{
	    return $this->tglExpired;
	}
	
	public function setIsBackup($isBackup)
	{
	    $this->isBackup = $isBackup;
	}
 
	public function getIsBackup()
	{
	    return $this->isBackup;
	}
	
	public function setKodeCepat($kodeCepat)
	{
	    $this->kodeCepat = $kodeCepat;
	}
 
	public function getKodeCepat()
	{
	    return $this->kodeCepat;
	}
	
	public function setSifatDokumen($sifatDokumen)
	{
	    $this->sifatDokumen = $sifatDokumen;
	}
 
	public function getSifatDokumen()
	{
	    return $this->sifatDokumen;
	}
	
	public function setGrupDokumen($grupDokumen)
	{
	    $this->grupDokumen = $grupDokumen;
	}
 
	public function getGrupDokumen()
	{
	    return $this->grupDokumen;
	}
	
	public function setKategoriDokumen($kategoriDokumen)
	{
	    $this->kategoriDokumen = $kategoriDokumen;
	}
 
	public function getKategoriDokumen()
	{
	    return $this->kategoriDokumen;
	}
	
	public function setDivisi($divisi)
	{
	    $this->divisi = $divisi;
	}
 
	public function getDivisi()
	{
	    return $this->divisi;
	}
}